package com.xiaotu.mapper;

import com.xiaotu.dto.BuyPropsCardDto;
import com.xiaotu.dto.ConsumePropsCardDto;
import com.xiaotu.model.PlayerEquipmentModel;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


/**
 * @author zhangxiao
 * @create 2022-04-01 16:15
 */
@org.apache.ibatis.annotations.Mapper
public interface PlayerEquipmentMapper extends Mapper<PlayerEquipmentModel> {

    Integer consumePropsCard(ConsumePropsCardDto consumePropsCardDto);

    void buyPropsCard(BuyPropsCardDto buyPropsCardDto);

    void deductionGoldCoins(@Param("list") List<Integer> playerIds, @Param("goldCoins") Integer goldCoins);
}
